/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jeck.action.v.cu_participar.inscribir.bussiness;

import com.jeck.action.v.cu_participar.inscribir.data.Mg_participar;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author bicho
 */
public class InscribirFirst {
    public static List getGrados(){
        List grados = new ArrayList();
        ResultSet rs = Mg_participar.getGrados();
        try {
            while (rs.next()) {
                grados.add(rs.getString(1));
            }
        } catch (SQLException ex) {
            Logger.getLogger(InscribirFirst.class.getName()).log(Level.SEVERE, null, ex);
        }        
        return grados;
    }

    public static List getInstitucion(){
        List grados = new ArrayList();
        ResultSet rs = Mg_participar.getInstitucion();
        try {
            while (rs.next()) {
                grados.add(rs.getString(1));
            }
        } catch (SQLException ex) {
            Logger.getLogger(InscribirFirst.class.getName()).log(Level.SEVERE, null, ex);
        }
        return grados;
    }
}
